package org.yly.game.rpggame.domain.model.task;

import java.util.Date;

import org.yly.game.rpggame.domain.model.DomainEvent;

public class TaskCompleteEvent implements DomainEvent {
	
    private int eventVersion;
    private Date occurredOn;
    
    private String taskId;
	
	public TaskCompleteEvent(String taskId) {
        this.eventVersion = 1;
        this.occurredOn = new Date();
        this.taskId = taskId;
	}

	@Override
	public int eventVersion() {
		return eventVersion;
	}

	@Override
	public Date occurredOn() {
		return occurredOn;
	}

	public String getTaskId() {
		return taskId;
	}

}
